package com.msb.common.config;

import com.msb.common.utils.CreateByHandleStrategy;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * time:2024/12/31 9:10
 * author:Administrator
 * desc:msb-mall-commonConfig
 */
@Component
public class CommonConfig {

    @Bean
    @ConditionalOnMissingBean(value = CreateByHandleStrategy.class)
    public CreateByHandleStrategy createByHandleStrategy(){

        return new CreateByHandleStrategy();
    }


}
